/**
 * RefundDao.java
 * 
 * Copyright@2015 OVT Inc. All rights reserved. 
 * 
 * 2015年12月21日
 */
package com.ovt.order.dao;

import java.util.List;

import com.ovt.order.dao.vo.Refund;

/**
 * RefundDao
 * 
 * @Author leo.liu
 * @Version 1.0
 * @See 
 * @Since [OVT Cloud Platform]/[API] 1.0
 */
public interface RefundDao
{
    /**
     * save refunds
     * 
     * @param refunds
     * @return
     */
    public long save(List<Refund> refunds);
    
    /**
     * update refunds
     * 
     * @param batchNo
     */
    public void update(List<Refund> refunds);
    
    /**
     * get refund by refundRequestId
     * 
     * @param refundRequestId
     * @return
     */
    public Refund getRefund(long refundRequestId);
    
    /**
     * get refund list
     * 
     * @return
     */
    public List<Refund> getRefundList();

    /**
     * get refund request ids by batch no
     * 
     * @param batchNo
     * @return List<Long>
     */
    public List<Long> getRefundRequestIdsByBatchNo(String batchNo);
}
